package com.zbp.config.exception;

import lombok.Data;

/**
 * packageName com.zbp.config.exception
 *
 * @author zbp
 * @version JDK 8
 * @fileName ApiException.java
 * @date 2023-11-16
 * @description 自定义异常
 */
@Data
public class ApiException extends RuntimeException {

    private String code;

    public ApiException(String message) {
        super(message);
    }

    public ApiException(String code, String message) {
        super(message);
        this.code = code;
    }

}